import declare from '@/assets/policyList/declare.svg';
import noStarted from '@/assets/policyList/noStarted.svg';
import share from '@/assets/policyList/share.svg';
import underDeclaration from '@/assets/policyList/underDeclaration.svg';
import statistics from '@/assets/policyList/statistics.png';
import eye from '@/assets/policyList/yanjing.svg';
import noShare from '@/assets/policyList/noShare.svg';
import ended from '@/assets/policyList/ended.svg';
import noStatistics from '@/assets/policyList/noStatistics.svg';

// 申报对象
const declarationList = [
  { key: '00', value: '', title: '不限' },
  { key: '01', value: '02', title: '单位' },
  { key: '02', value: '01', title: '个人' },
];
// 申报状态
const declarationStatus = [
  { key: '00', value: '', title: '不限' },
  { key: '01', value: '02', title: '申报中' },
  { key: '02', value: '03', title: '已结束' },
  { key: '03', value: '01', title: '未开始' },
];

// 主管部门
const competentDepartment = [
  { key: '00', value: '', title: '不限' },
  { key: '01', value: '01', title: '发改局' },
  { key: '02', value: '02', title: '科经局' },
  { key: '03', value: '03', title: '财政局' },
  { key: '05', value: '05', title: '住建局' },
  { key: '06', value: '06', title: '商务局' },
];
// 申报方式
const declarationMethod = [
  { key: '00', value: '', title: '不限' },
  { key: '01', value: '01', title: '随时申报' },
  { key: '02', value: '02', title: '按通知申报' },
  { key: '03', value: '03', title: '随招商协议申报' },
];
const stateMethod = (value: string) => {
  let state;
  let back;
  switch (value) {
    case '01':
      state = noStarted;
      back = 'rgba(43,87,158,0.3)';
      break;
    case '02':
      state = underDeclaration;
      back = 'rgba(1,96,41,0.3)';
      break;
    case '03':
      state = ended;
      back = 'rgba(221,221,221,0.3)';
      break;
    default:
      back = '';
      state = '';
  }
  return [state, back];
};
export {
  noStatistics,
  ended,
  noShare,
  eye,
  declare,
  noStarted,
  share,
  statistics,
  underDeclaration,
  declarationList,
  declarationStatus,
  competentDepartment,
  declarationMethod,
  stateMethod,
};
